<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <span th:include="~{include::mycss}"></span>
</head>
<body>
      <div class="container">
           <form th:action="@{/register}" method="post" th:object="${user}">
               账号：<input type="text" th:field="*{username}">
               <span th:if="${#fields.hasErrors('username')}" th:errors="*{username}"></span><br>
               密码：<input type="text" th:field="*{password}">
               <span th:if="${#fields.hasErrors('password')}" th:errors="*{password}"></span><br>
               手机：<input type="text" th:field="*{mobile}" >
               <span th:if="${#fields.hasErrors('mobile')}" th:errors="*{mobile}"></span><br>
               <button class="btn btn-success">注册</button>
           </form>
      </div>
</body>
</html>
